import Vue from "vue";
import App from "./App.vue";
import axios from '@/common/http'
import Cloudbase from "@cloudbase/vue-provider";
import store from '@/store/store'
import router from './router';
import ElementUI from 'element-ui';
import VWave from 'v-wave'
import power from '@/common/power'
import 'element-ui/lib/theme-chalk/index.css';
import '@/assets/less/main.less';
import '@/common/directives'; //dialog可以拖动

import Vant from 'vant';
import 'vant/lib/index.css';

// 注意更新此处的TCB_ENV_ID为你自己的环境ID
window._tcbEnv = window._tcbEnv || {};

export const envId = window._tcbEnv.TCB_ENV_ID;
export const region = window._tcbEnv.TCB_REGION;

Vue.config.productionTip = false;

Vue.use(ElementUI);
Vue.use(Vant);
Vue.use(VWave);
Vue.prototype.axios = axios;
Vue.prototype.$power = power;
// Vue.prototype.get = get;

Vue.use(Cloudbase, {
  env: 'web-cloud0713-6g519i65f479e638',
  region: 'ap-shanghai'
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");

